package com.dd.stack.file.pojo.VO;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @Author liuxianmeng
 * @CreateTime 2025/5/11 23:21
 * @Description 文件信息VO
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("ops_server_file")
public class FileVO {
    @ApiModelProperty("数据库id")
    private Long id;
    @ApiModelProperty("文件名")
    private String fileName;
    @ApiModelProperty("文件大小 单位KB")
    private Long fileSize;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("文件上传时间 数据库自动生成")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("数据库行数据更新时间")
    private LocalDateTime updateTime;
}
